/********************************************************************************
 *      Copyright:  (C) 2022 Zhang xiangyun<1327295677@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  database.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(25/04/22)
 *         Author:  Zhang xiangyun <1327295677@qq.com>
 *      ChangeLog:  1, Release initial version on "25/04/22 20:55:08"
 *                 
 ********************************************************************************/
#ifndef  _DATABASE_H_
#define  _DATABASE_H_

#include "pack.h"

//extern int sqlit_init(sqlite3 **db);
//extern static int callback(void *NotUsed,int argc,char **argv,char **azColName);
extern int sqlite_create_database(void);
extern int sqlite_data_insert(pack_info_t pack_info);
extern int sqlite_select_firstdata(pack_info_t *pack_info);
extern int empty_table_determine(void);
extern int sqlite_data_delete(void);
//extern int determine_table_exist(char *table_name);
extern sqlite3 *db;
#endif  /* -----#ifndef _DATABASE_H_ ----- */

